Skip to content

Add the latest ruby and rails to CI matrix#244

Open
willnet wants to merge 2 commits into
gregnavis:masterfrom
willnet:add-latest-ruby-and-rails-to-ci-matrix
Open

Add the latest ruby and rails to CI matrix#244
willnet wants to merge 2 commits into
gregnavis:masterfrom
willnet:add-latest-ruby-and-rails-to-ci-matrix

Conversation

@willnet

@willnet willnet commented Jul 6, 2026

Copy link
Copy Markdown

Add the latest Ruby and Rails to CI, update actions/checkout to the latest version, and fix the causes of CI failures.

CI results

willnet added 2 commits July 6, 2026 14:18
Add Ruby4.0, Rails8.0, 8.1 to the CI matrix. Also update actions/checkout to the latest version.

Change the Ruby version in the lint workflow to "ruby" so that the latest stable version of Ruby is used automatically.

Since the tests currently fail with Minitest 6, I updated the gemspec to restrict Minitest to version 5.x.
Adding Ruby 4.0 to the CI matrix makes ruby/setup-ruby use Bundler 4, which turns the existing sqlite3 development dependency mismatch into a hard failure before the test suite starts.

Previously, Bundler 2 allowed the Active Record 7 Gemfiles to override the gemspec's sqlite3 ~> 2.2.0 development dependency with sqlite3 ~> 1.4, emitting only a warning. Bundler 4 now treats those requirements as conflicting.

Relax the gemspec dependency to sqlite3 >= 1.4, < 3.0 so each appraisal Gemfile can select the adapter version required by its Active Record series: sqlite3 1.x for Active Record 7 and sqlite3 2.x for Active Record 8.

Also add rdoc as an explicit development dependency because Ruby 4.0 no longer ships rdoc/task as a default gem, and the Rakefile requires it when running the test tasks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant